package com.ruoyi.expensereimbursement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.expensereimbursement.mapper.ReimbursementCondolenceApplicationMapper;
import com.ruoyi.expensereimbursement.domain.ReimbursementCondolenceApplication;
import com.ruoyi.expensereimbursement.service.IReimbursementCondolenceApplicationService;

/**
 * 慰问金申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class ReimbursementCondolenceApplicationServiceImpl implements IReimbursementCondolenceApplicationService 
{
    @Autowired
    private ReimbursementCondolenceApplicationMapper reimbursementCondolenceApplicationMapper;

    /**
     * 查询慰问金申请
     * 
     * @param condolenceApplicationId 慰问金申请主键
     * @return 慰问金申请
     */
    @Override
    public ReimbursementCondolenceApplication selectReimbursementCondolenceApplicationByCondolenceApplicationId(Long condolenceApplicationId)
    {
        return reimbursementCondolenceApplicationMapper.selectReimbursementCondolenceApplicationByCondolenceApplicationId(condolenceApplicationId);
    }

    /**
     * 查询慰问金申请列表
     * 
     * @param reimbursementCondolenceApplication 慰问金申请
     * @return 慰问金申请
     */
    @Override
    public List<ReimbursementCondolenceApplication> selectReimbursementCondolenceApplicationList(ReimbursementCondolenceApplication reimbursementCondolenceApplication)
    {
        return reimbursementCondolenceApplicationMapper.selectReimbursementCondolenceApplicationList(reimbursementCondolenceApplication);
    }

    /**
     * 新增慰问金申请
     * 
     * @param reimbursementCondolenceApplication 慰问金申请
     * @return 结果
     */
    @Override
    public int insertReimbursementCondolenceApplication(ReimbursementCondolenceApplication reimbursementCondolenceApplication)
    {
        return reimbursementCondolenceApplicationMapper.insertReimbursementCondolenceApplication(reimbursementCondolenceApplication);
    }

    /**
     * 修改慰问金申请
     * 
     * @param reimbursementCondolenceApplication 慰问金申请
     * @return 结果
     */
    @Override
    public int updateReimbursementCondolenceApplication(ReimbursementCondolenceApplication reimbursementCondolenceApplication)
    {
        return reimbursementCondolenceApplicationMapper.updateReimbursementCondolenceApplication(reimbursementCondolenceApplication);
    }

    /**
     * 批量删除慰问金申请
     * 
     * @param condolenceApplicationIds 需要删除的慰问金申请主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementCondolenceApplicationByCondolenceApplicationIds(Long[] condolenceApplicationIds)
    {
        return reimbursementCondolenceApplicationMapper.deleteReimbursementCondolenceApplicationByCondolenceApplicationIds(condolenceApplicationIds);
    }

    /**
     * 删除慰问金申请信息
     * 
     * @param condolenceApplicationId 慰问金申请主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementCondolenceApplicationByCondolenceApplicationId(Long condolenceApplicationId)
    {
        return reimbursementCondolenceApplicationMapper.deleteReimbursementCondolenceApplicationByCondolenceApplicationId(condolenceApplicationId);
    }
}
